'use strict';

const Controller = require('egg').Controller;

class TestController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = {
      code: 1,
      data: [
        { name: 'a', age: 12 },
        { name: 'a', age: 12 },
        { name: 'a', age: 12 },
      ],
    };
  }
}

module.exports = TestController;
